<% @topics.each do |topic| %>
    <% if @lastest_topic.id == topic.id%> 	
        <%= render(:partial => "shared/latest_entry",:object=>topic) %>
    <% else%>
        <%= render(:partial => "shared/common_entry",:object=>topic) %>
    <% end %>
<% end %>


         <div style="">
         <span class=”pagelink”>
         <%= link_to '&laquo; Previous page', { :page => @topic_pages.current.previous },{:class=>"button"} if @topic_pages.current.previous %>
         <%= pagination_links(@topic_pages,{},{:class=>"button"})%> 
         <%= link_to 'Next Page &raquo;', { :page => @topic_pages.current.next },{:class=>"button"} if @topic_pages.current.next %>
         </span>
         </div>		
